import request from '@/utils/request'

// 产品列表
export function productLists(params?: Record<string, any>) {
    return request.get({ url: '/product/list', params })
}

// 产品详情
export function productDetail(params: Record<string, any>) {
    return request.get({ url: '/product/detail', params })
}

// 产品新增
export function productAdd(params: Record<string, any>) {
    return request.post({ url: '/product/add', params })
}

// 产品编辑
export function productEdit(params: Record<string, any>) {
    return request.post({ url: '/product/edit', params })
}

// 产品删除
export function productDelete(params: Record<string, any>) {
    return request.post({ url: '/product/del', params })
}
